package cn.topcodes.tcsf.wechat.domain.form;

import cn.topcodes.tcsf.admin.commons.domain.Idable;
import lombok.Data;
import java.util.Date;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 微信菜单表单
 * @author unicorn
 * @date 2017-08-15 19:18:38
 */
@Data
public class WechatMenuForm implements Idable {
	
	private Long id;

	@NotNull(message = "名称不能为空")
	@Length(min = 0,max = 45,message = "名称长度为0~45个字符")
	private String name;
	
	@Length(min = 0,max = 45,message = "key长度为0~45个字符")
	private String menuKey;
	
	@NotNull(message = "类型不能为空")
	@Length(min = 0,max = 45,message = "类型长度为0~45个字符")
	private String type;
	
	@Length(min = 0,max = 200,message = "地址长度为0~200个字符")
	private String url;
	
	@Length(min = 0,max = 100,message = "素材长度为0~100个字符")
	private String mediaId;
	
	private Long parentId;
	

}